using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TriaServer.Model;
using TriaServer.Service;
using Leeder.Business;

namespace TriaServer.Business
{
    /// <summary>
    /// 
    /// </summary>
   public class ProductionModelsBLL : BaseBLL<ProductionModelsModel, ProductionModelsService>
   {
        public ProductionModelsBLL()
        {
            Service = new ProductionModelsService();
        }

        public ProductionModelsModel GetProductionModelsByCondition(string code)
        {
            return Service.Query(p => p.Model_Code == code).ActivedObj.FirstOrDefault();
        }
    }
}
